//
//  XHFirstTypeTwoCell.h
//  umibus
//
//  Created by fengyn on 16/6/18.
//  Copyright © 2016年 lexingsoft. All rights reserved.
//

#import <UIKit/UIKit.h>
static NSString * const XHFirstTypeTwoCellIdentifier = @"XHFirstTypeTwoCellIdentifier";

@class XHFirstTypeTwoView;
@protocol XHFirstTypeTwoViewDelegate <NSObject>
- (void)buttonViewDidSelectedAction:(XHFirstTypeTwoView *)sender;
@end

@protocol XHFirstTypeTwoCellDelegate <NSObject>
- (void)cellDidSelectedData:(NSDictionary *)data index:(NSInteger)index;
@end

@interface XHFirstTypeTwoCell : UITableViewCell<XHFirstTypeTwoViewDelegate>
@property (weak, nonatomic) id<XHFirstTypeTwoCellDelegate> delegate;
@property (weak, nonatomic) IBOutlet UILabel *ui_titleLabel;
@property (weak, nonatomic) IBOutlet UIView *ui_lineView;
@property (weak, nonatomic) IBOutlet UIView *ui_borderView;
@property (strong, nonatomic) NSArray *m_dataArray;
- (void)setdata:(NSArray *)productArray;
- (void)setButtonSelectedWithTag:(NSInteger)tag;
@end

@interface XHFirstTypeTwoView : UIView
@property (weak, nonatomic) id<XHFirstTypeTwoViewDelegate> delegate;
@property (nonatomic, weak) UIView *borderView;
@property (nonatomic, weak) UIButton *button;
@property (nonatomic, weak) UILabel *titleLabel;
@property (nonatomic, weak) UILabel *detailLabel;
@property (nonatomic, weak) UIImageView *tagImageView;
@property (nonatomic, weak) UILabel *noteLabel;
- (void)setSelected:(BOOL)selected;
@end